package com.union.core.organization.dao;

import java.util.List;

import com.union.core.organization.model.OrganizationManager;

public interface OrganizationManagerDao{
	/**
	 * 查询机构信息列表
	 */
	public List<OrganizationManager> query(int pid,int start,int pageSize);
	
	public List<OrganizationManager> queryList(int pid);
	
	public List<OrganizationManager> queryList();
	
	public List<OrganizationManager> queryList(String organization_parent);
	/**
	 * 查询机构数目
	 */
	public int ListCount(int pid);
	
	/**
	 * 查询单个机构
	 * @param pid
	 * @param organization_name
	 * @return
	 */
	public OrganizationManager query(int pid,String organization_name);
	
	/**
	 * 查询单个机构
	 * @param organization_id
	 * @return
	 */
	public OrganizationManager query(int organization_id);
	
	public OrganizationManager query(String organization_name);
	
	/**
	 * 
	 * @param organization
	 * @return
	 * 添加机构
	 */
	public boolean add(OrganizationManager organization);
	
	/**
	 * 修改机构信息
	 * @param organization
	 * @return
	 */
	public boolean edit(OrganizationManager organization);
	
	/**
	 * 删除机构
	 * @param organization_id
	 * @return
	 */
	public Boolean delete(int organization_id);
	
	public boolean checkPid(int pid);
	
	public boolean checkOrganizationName(String organization_name);
	
	public OrganizationManager query1(int manager_id);
	
	public List<OrganizationManager> queryList1(int organization_id);
	
}